﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/MVCFoto.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    登录<%=MVCFoto.BLL.MVCFotoSettings.SiteName %>
</asp:Content>
<asp:Content ID="registerJS" ContentPlaceHolderID="MetaContent" runat="server">
<script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/Scripts/jquery-1.3.2.min.js")%>"></script>
<script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/Scripts/jquery.validate.pack.js")%>"></script>
<script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/Scripts/login.js")%>"></script>
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>登录<%=MVCFoto.BLL.MVCFotoSettings.SiteName %></h2>
    <p>
        请输入您的用户名和密码. 还没有帐号? <%= Html.ActionLink("立即注册", "Register") %> .
    </p>
    <%= Html.ValidationSummary("登录失败，请修正以下错误后重试.") %>

    <% using (Html.BeginForm("LogOn","Account", FormMethod.Post,new{@id="form_login"})) { %>
        <div>
            <fieldset>
                <legend>帐号信息</legend>
                <p>
                    <label for="username">用户名:</label>
                    <%= Html.TextBox("username", "", new { tabindex = 1})%>
                    <%= Html.ValidationMessage("username") %>
                </p>
                <p>
                    <label for="password">密&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
                    <%= Html.Password("password", "", new { tabindex = 2 })%>
                    <%= Html.ValidationMessage("password") %>
                </p>
                <p>
                    <%= Html.CheckBox("rememberMe",new{tabindex=3}) %> <label class="inline" for="rememberMe">记住我(为了您的帐户安全，请勿在公共计算机上勾选该项)?</label>
                </p>
                <p><input type="hidden" value="<%=ViewData["ReturnUrl"] %>" name="returnurl"/>
                    <button type="submit" tabindex="4" class="submitBtn" value="登  录"><span>登  录</span></button>
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
